﻿package com.element.icon 
{
	import com.event.EventZheng;
	import com.staticInfo.EventConst;
	import flash.display.Sprite;
	import flash.events.MouseEvent;
	
	/**
	 * ...
	 * @author zhengzihua
	 */
	public class IconShop extends Sprite
	{
		
		public function IconShop() 
		{
			addEventListener(MouseEvent.CLICK, onClick);
		}
		private function onClick(e:MouseEvent):void 
		{
			var event:EventZheng = new EventZheng(EventConst.EVENT_CHANGEOPERATE);
			event.obj.phase=1//抛出期间
			event.obj.type = "shop";
			parent.parent.dispatchEvent(event);//stage
		}
	}
	
}